﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace com.instalinks.android.web.web2sms
{
    public partial class AuthToken : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            try
            {
                C2DMService srv = new C2DMService();
                this.txtAuthToken.Text = srv.GetAuthToken(this.txtEmail.Text, txtPassword.Text);
                lblError.Text = String.Empty;
            }
            catch (Exception ex)
            {
                lblError.Text = ex.Message;
            }
        }
    }
}